﻿<%@ Page Language="C#" MasterPageFile="~/Content/AdminMaster.Master" AutoEventWireup="true" CodeBehind="CAdminCty.aspx.cs" Inherits="W5_DoAnCuoiKy_Glow.Content.CAdminCty" Title="Untitled Page" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <h4>
        Cập nhật thông tin thông tin công ty</h4>
    <center>
        <table>
            <tr>
                <td>
                    Tên công ty:
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:TextBox ID="txtTenCty" runat="server" Width="400px"></asp:TextBox>
                    <br />
                    <br />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtTenCty" ErrorMessage="Nhập tên công ty !" 
                        SetFocusOnError="True">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Email Admin:
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server" Width="400px"></asp:TextBox>
                    <br />
                    <br />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="Nhập Email !" 
                        SetFocusOnError="True">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtEmail" ErrorMessage="Sai định dạng Email " 
                        SetFocusOnError="True" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Địa chỉ:
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:TextBox ID="txtDiaChi" runat="server" Width="400px"></asp:TextBox>
                    <br />
                    <br />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtDiaChi" Display="Dynamic" ErrorMessage="Nhập địa chỉ !" 
                        SetFocusOnError="True">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Điện thoại:
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:TextBox ID="txtDienThoai" runat="server" Width="400px"></asp:TextBox>
                    <br />
                    <br />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txtDienThoai" Display="Dynamic" 
                        ErrorMessage="Nhập điện thoại" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Lời giới thiệu:
                </td>
                <td>
                    &nbsp;</td>
                <td>     
                                  
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="CKEditorControl1" ErrorMessage="Nhập lời giới thiệu !" 
                        SetFocusOnError="True">*</asp:RequiredFieldValidator>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                        DisplayMode="List" />
                                  
                </td>
            </tr>
        </table>
        <CKEditor:CKEditorControl ID="CKEditorControl1" runat="server"></CKEditor:CKEditorControl>
        <br />
        <asp:Button ID="btnOK" runat="server" BorderStyle="Ridge" Text="Cập nhật" 
            onclick="btnOK_Click" />
    </center>
    
    </asp:Content>

